import pygame
from game import Game


class Shape:
    def __init__(self, x, y, w, h, r, color, xu):
        self.x = x
        self.y = y
        self.w = w
        self.h = h
        self.r = r
        self.color = color
        self.xu = xu
        self.rect = pygame.rect.Rect(self.x, self.y, self.w, self.h)

    def rect(self):
        pygame.draw.rect(Game.window, self.color, (self.rect.x, self.rect.y, self.rect.w, self.rect.h), self.xu)

    def circle(self):
        pygame.draw.circle(Game.window, self.color, (self.rect.x, self.rect.y, self.rect.w, self.rect.h), self.r,
                           self.xu)

